<?php

namespace App\Http\Controllers\Index;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Utils\Category;
use App\Models\Goods\Category as CategoryModel;
class Base extends Controller
{
    //
    public function __construct(Request $request)
    {

    }

    public function getTreeCategory(){
        $categorys = CategoryModel::getAllCategory();
        $categorys = Category::getTree($categorys);
        return $categorys;
    }
}
